package com.carepad.service.impl;

import java.util.Calendar;

import com.carepad.entity.AbstractEntity;

public abstract class AbstractService {

	public static final String ITEM_NOT_FOUND_ERROR_MESSAGE = "Searched item not found : ";

	public void saveAddSettings(AbstractEntity entity) {
		Calendar calendar = Calendar.getInstance();

		entity.setDateRegistration(calendar.getTime());
		entity.setDateUpdated(calendar.getTime());

	}

	public void saveEditSettings(AbstractEntity entity) {
		Calendar calendar = Calendar.getInstance();

		entity.setDateUpdated(calendar.getTime());
	}
	
}